<script lang="ts">
	 // #ifndef MP-ALIPAY
	import { TUILogin } from '@tencentcloud/tui-core';
	// #ifdef APP-PLUS || H5
	import { TUIChatKit } from './TUIKit';
	//引入了腾讯云即时通讯 SDK 的 TUILogin 模块和 TUIChatKit 模块。
	TUIChatKit.init();
	//初始化 TUIChatKit
	// #endif
	// #endif


let vueVersion = 2;
// #ifdef VUE3
vueVersion = 3;
// #endif
// #ifndef MP-ALIPAY
// Required information
// You can get userSig from TencentCloud chat console for Testing TUIKit.
// Deploy production environment please get it from your server.
// View https://cloud.tencent.com/document/product/269/32688
uni.$SDKAppID = 1600043210; // Your SDKAppID
uni.$userID = 'admin3'; // Your userID
uni.$userSig ='eJyrVgrxCdYrSy1SslIy0jNQ0gHzM1NS80oy0zLBwokpuZl5xlCZ4pTsxIKCzBQlK0MzAwMDE2MjQwOITGpFQWZRKlDc1NTUCCgFES3JzAWJmQNFzE3NzMyhpmSmAw0OMskLDi8NzUlM9oxyL43yMMwJtcgO8kzPcspN8qw0zXMOM3Ipz092CnR0tVWqBQBP2DGw'
// #endif
export default {
	// #ifndef MP-ALIPAY
	onLaunch: function () {
		 TUILogin.login({
		   SDKAppID: uni.$SDKAppID,
		   userID: uni.$userID, 
		   userSig: uni.$userSig, 
		   useUploadPlugin: true, // If you need to send rich media messages, please set to true.
		   framework: `vue${vueVersion}` // framework used vue2 / vue3
		 }).catch(() => {});
	}
	// #endif
 
};
</script>
<style >
/* common css for page */
/* uni-page-body,html,body,page {
  width: 100% !important;
  height: 100% !important;
  overflow: hidden;
} */

</style>